package events;

import java.util.EventObject;

import dustdispatcher.DustTask;

/**
 * Superclass for events raised by any instance of the DustTask class. If you
 * plan to extend DustTask functionality using events, those events should
 * extend this class.
 * 
 * @author ole
 */
public class DustTaskEvent extends EventObject {
	private static final long serialVersionUID = 1L;
	
	/**
	 * Class constructor.
	 * 
	 * @param source:
	 * 		 The DustTask that raised this event.
	 */
	public DustTaskEvent(DustTask source) {
		super(source);
	}
	
	/**
	 * Returns the DustTask that raised this event.
	 * 
	 * @return:
	 * 		The DustTask of this event.
	 */
	@Override
	public DustTask getSource() {
		return (DustTask)source;
	}
}
